package com.zengdada.authority.service;

import com.zengdada.authority.model.AppPower;
import com.zengdada.authority.model.AppRole;
import com.zengdada.authority.model.AppUser;

import java.util.List;
import java.util.Map;

public interface AppRoleAuthorityService extends BaseService<AppRole> {
    List<Map<String, Object>> getRoleByUser(AppUser user);

    List<Map<String, Object>> selectAllResource(String appId);

    List<AppPower> selectAllNotResource(String appId);

    List<Map<String, Object>> getRoleOrDepartment(List<String> types);

    List<Map<String, Object>> getRoleOrDepartmentTree(List<String> types);
}
